package com.aptemo.webetek.client.commands.impl;

import com.aptemo.webetek.client.commands.PagingAction;
import com.aptemo.webetek.client.enums.EnumUserOrdering;
import com.aptemo.webetek.client.enums.EnumUserStatus;
import com.aptemo.webetek.shared.UserBean;

public class GetPlayersPagingAction
		extends PagingAction<UserBean>
{

	private EnumUserStatus		status;
	private String				teamId;
	private EnumUserOrdering	order;

	protected GetPlayersPagingAction()
	{
	}

	public GetPlayersPagingAction(String teamId, EnumUserStatus statusfilter, String cursor, int pageSize)
	{
		this(teamId, statusfilter, EnumUserOrdering.DATE_ASC, cursor, pageSize);
	}

	public GetPlayersPagingAction(String teamId, EnumUserStatus statusfilter, EnumUserOrdering order, String cursor, int pageSize)
	{
		super(cursor, pageSize);
		this.setStatus(statusfilter);
		this.teamId = teamId;
		this.order = order;

	}

	public void setStatus(EnumUserStatus status)
	{
		this.status = status;
	}

	public EnumUserStatus getStatus()
	{
		return status;
	}

	public String getTeamId()
	{
		return this.teamId;
	}

	public EnumUserOrdering getOrder()
	{
		return order;
	}

}
